<template>
    <p>内联式事件处理器</p>
    <button @click="addCount">Add</button>
    <p>{{ count }}</p>
</template>
<script>
export default {
    data() {
        return {
            count:0
        }
    },
    methods: {
        addCount(e) {
            // console.log(e.target);
            e.target.innerHTML="Add" + this.count
            this.count++
        }
        
    }
}

</script>